package netcore.protocol.BulkDataType
{
    import flash.utils.ByteArray;
    import netcore.net.ProtocolBuffer;
    import netcore.net.INT64;
    import netcore.net.UINT64;
    import netcore.protocol.MessageType;
    
    // 角色基础信息2
    public class CHAR_BASIC2
    {
        public var char_oid:uint;
        public var account_oid:uint;
        public var create_entryway:uint;
        public var char_order:int;
        public var gm_authority:int;
        public var name:String;
        public var title_id:Array; /* array of int64 */
        public function readFromStream(stream:ByteArray):void
        {
            char_oid = stream.readUnsignedInt();
            account_oid = stream.readUnsignedInt();
            create_entryway = stream.readUnsignedInt();
            char_order = stream.readInt();
            gm_authority = stream.readShort();
            name = stream.readUTF();
            var length7:int = stream.readUnsignedShort();
            title_id = [];
            for(var i7:int = 0; i7 < length7; i7++)
            {
                title_id[i7] = stream.double();
            }
        }
        
        public function writeToStream(stream:ByteArray):void
        {
            stream.writeUnsignedInt(char_oid);
            stream.writeUnsignedInt(account_oid);
            stream.writeUnsignedInt(create_entryway);
            stream.writeInt(char_order);
            stream.writeShort(gm_authority);
            stream.writeUTF(name);
            stream.writeShort(title_id.length);
            for(var i7:int = 0; i7 < title_id.length; i7++)
            {
                stream.double(title_id[i7]);
            }
        }
        
    }
}
